package _03final关键字.final修饰变量;

public class Demo01 {
    public static void main(String[] args) {
        final int i=10;
        //i= 16;//Cannot assign a value to final variable 'i'


        final Student student = new Student("张三");
        System.out.println(student.getName());

        //student =new Student("aaa");//Cannot assign a value to final variable 'student'
        student.setName("李四");
        System.out.println(student.getName());
    }
}
